package edu.sdjzu.exam.enums;

public enum AuthResultCode {
    SUCCESS(200, "成功"),
    USER_NOT_FOUND(401, "账号或密码错误"),
    INVALID_ROLE(400, "无效角色，仅支持 student 或 teacher"),
    USER_EXISTS(400, "用户名已存在"),
    NOT_LOGGED_IN(401, "未登录，无法注销"),
    ERROR(500, "系统错误");

    public final int code;
    public final String message;

    AuthResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}

